package com.dell.chen.servlet;

import com.dell.chen.pojo.Order;
import com.dell.chen.service.Impl.OrderServiceImpl;
import com.dell.chen.service.OrderService;
import com.dell.chen.utils.WebUtils;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Date;

/**
 * @author ：ChenwithIU
 * @date ：Created in 2020/12/7 16:49
 */
public class OrderServlet extends BaseServlet{

    private OrderService orderService = new OrderServiceImpl();

    protected void createOrder(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

        String flowerId = req.getParameter("flowerId");
        String fName = null;
        int id = WebUtils.parseInt(flowerId, 0);



        String orderId = System.currentTimeMillis()+""+id;

//        orderService.createOrder(new Order(null,orderId,));


    }
}
